package com.linked.universal.api;

import com.linked.commonentity.basemanage.deletebak.LinkedDeleteBak;
import com.linked.commonentity.basemanage.generallog.LinkedGeneralLog;
import com.linked.universal.common.LinkedResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


public interface BaseManageAPI {

    @PostMapping(value = "/basemanage/feign/findSwitchStatus")
    Boolean findSwitchStatus(@RequestParam("switchCode") String switchCode);

    @PostMapping(value = "/basemanage/feign/turnSwitch")
    Boolean turnSwitch(@RequestParam("switchCode") String switchCode);

    @PostMapping(value = "/basemanage/feign/insertGeneralLog")
    void insertGeneralLog(@RequestBody LinkedGeneralLog logInfo);

    @PostMapping(value = "/basemanage/feign/queryPassList")
    LinkedResult queryPassList(@RequestParam("passType") Integer passType) throws Exception;

    @PostMapping(value = "/basemanage/feign/addDeleteBak")
    Boolean addDeleteBak(@RequestBody LinkedDeleteBak deleteBak);
}
